package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
/**
 * 用户获取票信息对象 biz_user_songs_ticket
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-07-07
 */
@Data
public class UserSongsTicket extends BaseEntity<UserSongsTicket>
{
    private static final long serialVersionUID = 1L;


    /** 会员ID */
    @Excel(name = "会员ID")
    private String userInfoId;

    /** 门票ID */
    @Excel(name = "门票ID")
    private String songsTicketId;

    /** 是否核销 0待核销 1 已经核销*/
    private Integer isUse;

    /** 核销码 */
    private String useCode;

    /** 排序 */
    private Integer sort;

    /** 状态（0正常 1 停用） */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;

    private UserInfo userInfo;

    private SongsInfo songsInfo;

    private String name,phone,idCard;



    public void setUserInfoId(String userInfoId) 
    {
        this.userInfoId = userInfoId;
    }

    public String getUserInfoId() 
    {
        return userInfoId;
    }

    public void setSongsTicketId(String songsTicketId) 
    {
        this.songsTicketId = songsTicketId;
    }

    public String getSongsTicketId() 
    {
        return songsTicketId;
    }

    public void setIsUse(Integer isUse) 
    {
        this.isUse = isUse;
    }

    public Integer getIsUse() 
    {
        return isUse;
    }

    public void setUseCode(String useCode) 
    {
        this.useCode = useCode;
    }

    public String getUseCode() 
    {
        return useCode;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("deptName", getDeptName())
            .append("companyId", getCompanyId())
            .append("userInfoId", getUserInfoId())
            .append("songsTicketId", getSongsTicketId())
            .append("isUse", getIsUse())
            .append("useCode", getUseCode())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
